<template>
	<scroll-view class="shequ" scroll-y>
		<image :lazy-load="true" src="../../static/images/shequ.jpg" mode="widthFix" class="topNanaerImage"></image>
		<view class="shequList">
			<view class="item" v-for="(item,index) in shequList" :key="index">
				<view class="left">
					<image :lazy-load="true" :src="item.image_list"  class="itemImage"></image>
				</view>
				<view class="right">
					<view class="rightTitle">{{item.tail}}</view>
					<view class="rightText">{{item.info}}</view>
				</view>
			</view>
		</view>
	</scroll-view>
</template>

<script>
	export default {
		data() {
			return {
				shequList:[]
			};
		},
		onLoad() {
			var shequListUrl="https://www.softeem.xin/d.api/forum/subscribe/budejie-android-8.0.1.json";
			uni.request({
				url:shequListUrl,
				success:res=>{
					this.shequList=res.data.list;
				}
			})
		}
	}
</script>

<style scoped>
	.shequ{
		height: 100%;
	}
	.topNanaerImage{
		width: 100%;
		display: block;
	}
	.shequList .item{
		display: flex;
		flex-direction: row;
		box-sizing: border-box;
		padding: 20upx;
		border-bottom: 1px solid #ececec;
	}
	.shequList .item .left{
		width: 160upx;
		height: 160upx;
	}
	.itemImage{
		width: 100%;
		height: 100%;
		display: block;
		border-radius: 10px;
	}
	.shequList .item .right{
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		box-sizing: border-box;
		padding-left: 20upx;
		padding-right:20upx;
		overflow: hidden;
	}
	.rightTitle{
		font-weight: bold;
		font-size: 30upx;
	}
	.rightText{
		font-size: 28upx;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	
</style>
